/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.opensource.jdom.taggen.html;

import org.opensource.jdom.taggen.Tag;

/**
 *
 * Core and Events Attributes. Extend directly from this class for Core and 
 * Events Attributes.
 *
 * @author sergio.valdez
 */
public class CoreEventAttributes extends Tag{

    /*Core Attributes*/

    /**
     * Identifies a unique element. The value of id can be used by CSS to
     * reference that element. It can also be used by scripting languages to
     * reference the element. Links can be made directly to an element with a
     * specific id. The value of the id attribute must be unique.<br>
     * <p>If you have the HTML:</p>
     * <pre><code class="html">
     * &lt;p <strong>id="jelly"</strong>&gt;Wobble wobble wobble.&lt;/p&gt;
     * </code></pre>
     * <p>You can use the CSS:</p>
     * <pre><code class="css">
     * #jelly { background-color: red; }</code></pre>
     *
     * <p>Or link to that paragraph using the following HTML:</p>
     *
     * <pre><code class="html">
     * &lt;a href="#jelly"&gt;Jelly&lt;/a&gt;</code></pre>
     */
    private String id;

    /**
     * <p>Used to reference elements with CSS. Any number of elements can have
     * the same value (unlike <code>id</code>)</p>
     * <p>If you have the HTML:</p>
     *
     * <pre><code class="html">
     * &lt;p&gt;The stuff was &lt;span <strong>class="custard"</strong>&gt;
     * yellow&lt;/span&gt;, very, very &lt;strong <strong>class="custard"
     * </strong>&gt;yellow&lt;/strong&gt;.&lt;/p&gt;</code></pre>
     * <p>You can use the CSS:</p>
     *
     * <pre><code class="css">
     * .custard { color: yellow; }</code></pre>
     */
    private String cssClass;

    /**
     * <h3>style</h3>
     * <p>Applies style to an element. The value should be CSS code and used
     * something like this:</p>
     * <pre><code class="html">
     * &lt;p <strong>style="background-color: blue; color: yellow;"</strong>&gt;
     * Yellow text on a blue background.&lt;p&gt;</code></pre>
     * <p><strong>Note:</strong> The <code> style</code>
     * attribute is deprecated in the latest version of HTML and
     * <a href="/guides/cssbeginner/applyingcss/">embedded or external</a>
     * CSS should be used instead.</p>
     */
    private String cssStyle;

    /**
     * <h3>title</h3>
     * <p>Adds a title to an element. Many browsers will display the value of
     * this attribute when the element is hovered-over or is in focus.</p>
     */
    private String title;

    /*Event Attributes*/

    /**
     * The JavaScript of the value is executed when a pointing-device is used to
     * 'click' on the element.
     */
    private String onclick;

    /**
     * The JavaScript of the value is executed when a pointing-device is used to
     * 'double-click' on the element.
     */
    private String ondblclick;

    /**
     * The JavaScript of the value is executed when the button on a
     * pointing-device is pressed down while the cursor is over the element.
     */
    private String onmousedown;

    /**
     * The JavaScript of the value is executed when the button on a
     * pointing-device is released while the cursor is over the element.
     */
    private String onmouseup;

    /**
     * The JavaScript of the value is executed when the cursor is moved onto
     * an element.
     */
    private String onmouseover;

    /**
     * The JavaScript of the value is executed when the cursor is moved over
     * an element.
     */
    private String onmousemove;

    /**
     * The JavaScript of the value is executed when the cursor is moved off an
     * element.
     */
    private String onmouseout;

    /**
     * The JavaScript of the value is executed when an element is in focus and a
     * key on the keyboard is pressed down and released.
     */
    private String onkeypress;

    /**
     * The JavaScript of the value is executed when an element is in focus and a
     * key on the keyboard is pressed down.
     */
    private String onkeydown;

    /**
     * The JavaScript of the value is executed when an element is in focus and a
     * key on the keyboard is released.
     */
    private String onkeyup;

    /**
     * Identifies a unique element. The value of id can be used by CSS to
     * reference that element. It can also be used by scripting languages to
     * reference the element. Links can be made directly to an element with a
     * specific id. The value of the id attribute must be unique.<br>
     * <p>If you have the HTML:</p>
     * <pre><code class="html">
     * &lt;p <strong>id="jelly"</strong>&gt;Wobble wobble wobble.&lt;/p&gt;
     * </code></pre>
     * <p>You can use the CSS:</p>
     * <pre><code class="css">
     * #jelly { background-color: red; }</code></pre>
     *
     * <p>Or link to that paragraph using the following HTML:</p>
     *
     * <pre><code class="html">
     * &lt;a href="#jelly"&gt;Jelly&lt;/a&gt;</code></pre>
     * @return the id
     */
    public String getId() {
        return id;
    }

    /**
     * Identifies a unique element. The value of id can be used by CSS to
     * reference that element. It can also be used by scripting languages to
     * reference the element. Links can be made directly to an element with a
     * specific id. The value of the id attribute must be unique.<br>
     * <p>If you have the HTML:</p>
     * <pre><code class="html">
     * &lt;p <strong>id="jelly"</strong>&gt;Wobble wobble wobble.&lt;/p&gt;
     * </code></pre>
     * <p>You can use the CSS:</p>
     * <pre><code class="css">
     * #jelly { background-color: red; }</code></pre>
     *
     * <p>Or link to that paragraph using the following HTML:</p>
     *
     * <pre><code class="html">
     * &lt;a href="#jelly"&gt;Jelly&lt;/a&gt;</code></pre>
     * @param id the id to set
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * <p>Used to reference elements with CSS. Any number of elements can have
     * the same value (unlike <code>id</code>)</p>
     * <p>If you have the HTML:</p>
     *
     * <pre><code class="html">
     * &lt;p&gt;The stuff was &lt;span <strong>class="custard"</strong>&gt;
     * yellow&lt;/span&gt;, very, very &lt;strong <strong>class="custard"
     * </strong>&gt;yellow&lt;/strong&gt;.&lt;/p&gt;</code></pre>
     * <p>You can use the CSS:</p>
     *
     * <pre><code class="css">
     * .custard { color: yellow; }</code></pre>
     * @return the cssClass
     */
    public String getCssClass() {
        return cssClass;
    }

    /**
     * <p>Used to reference elements with CSS. Any number of elements can have
     * the same value (unlike <code>id</code>)</p>
     * <p>If you have the HTML:</p>
     *
     * <pre><code class="html">
     * &lt;p&gt;The stuff was &lt;span <strong>class="custard"</strong>&gt;
     * yellow&lt;/span&gt;, very, very &lt;strong <strong>class="custard"
     * </strong>&gt;yellow&lt;/strong&gt;.&lt;/p&gt;</code></pre>
     * <p>You can use the CSS:</p>
     *
     * <pre><code class="css">
     * .custard { color: yellow; }</code></pre>
     * @param cssClass the cssClass to set
     */
    public void setCssClass(String cssClass) {
        this.cssClass = cssClass;
    }

    /**
     * <h3>style</h3>
     * <p>Applies style to an element. The value should be CSS code and used
     * something like this:</p>
     * <pre><code class="html">
     * &lt;p <strong>style="background-color: blue; color: yellow;"</strong>&gt;
     * Yellow text on a blue background.&lt;p&gt;</code></pre>
     * <p><strong>Note:</strong> The <code> style</code>
     * attribute is deprecated in the latest version of HTML and
     * <a href="/guides/cssbeginner/applyingcss/">embedded or external</a>
     * CSS should be used instead.</p>
     * @return the cssStyle
     */
    public String getCssStyle() {
        return cssStyle;
    }

    /**
     * <h3>style</h3>
     * <p>Applies style to an element. The value should be CSS code and used
     * something like this:</p>
     * <pre><code class="html">
     * &lt;p <strong>style="background-color: blue; color: yellow;"</strong>&gt;
     * Yellow text on a blue background.&lt;p&gt;</code></pre>
     * <p><strong>Note:</strong> The <code> style</code>
     * attribute is deprecated in the latest version of HTML and
     * <a href="/guides/cssbeginner/applyingcss/">embedded or external</a>
     * CSS should be used instead.</p>
     * @param cssStyle the cssStyle to set
     */
    public void setCssStyle(String cssStyle) {
        this.cssStyle = cssStyle;
    }

    /**
     * <h3>title</h3>
     * <p>Adds a title to an element. Many browsers will display the value of
     * this attribute when the element is hovered-over or is in focus.</p>
     * @return the title
     */
    public String getTitle() {
        return title;
    }

    /**
     * <h3>title</h3>
     * <p>Adds a title to an element. Many browsers will display the value of
     * this attribute when the element is hovered-over or is in focus.</p>
     * @param title the title to set
     */
    public void setTitle(String title) {
        this.title = title;
    }

    /**
     * The JavaScript of the value is executed when a pointing-device is used to
     * 'click' on the element.
     * @return the onclick
     */
    public String getOnclick() {
        return onclick;
    }

    /**
     * The JavaScript of the value is executed when a pointing-device is used to
     * 'click' on the element.
     * @param onclick the onclick to set
     */
    public void setOnclick(String onclick) {
        this.onclick = onclick;
    }

    /**
     * The JavaScript of the value is executed when a pointing-device is used to
     * 'double-click' on the element.
     * @return the ondblclick
     */
    public String getOndblclick() {
        return ondblclick;
    }

    /**
     * The JavaScript of the value is executed when a pointing-device is used to
     * 'double-click' on the element.
     * @param ondblclick the ondblclick to set
     */
    public void setOndblclick(String ondblclick) {
        this.ondblclick = ondblclick;
    }

    /**
     * The JavaScript of the value is executed when the button on a
     * pointing-device is pressed down while the cursor is over the element.
     * @return the onmousedown
     */
    public String getOnmousedown() {
        return onmousedown;
    }

    /**
     * The JavaScript of the value is executed when the button on a
     * pointing-device is pressed down while the cursor is over the element.
     * @param onmousedown the onmousedown to set
     */
    public void setOnmousedown(String onmousedown) {
        this.onmousedown = onmousedown;
    }

    /**
     * The JavaScript of the value is executed when the button on a
     * pointing-device is released while the cursor is over the element.
     * @return the onmouseup
     */
    public String getOnmouseup() {
        return onmouseup;
    }

    /**
     * The JavaScript of the value is executed when the button on a
     * pointing-device is released while the cursor is over the element.
     * @param onmouseup the onmouseup to set
     */
    public void setOnmouseup(String onmouseup) {
        this.onmouseup = onmouseup;
    }

    /**
     * The JavaScript of the value is executed when the cursor is moved onto
     * an element.
     * @return the onmouseover
     */
    public String getOnmouseover() {
        return onmouseover;
    }

    /**
     * The JavaScript of the value is executed when the cursor is moved onto
     * an element.
     * @param onmouseover the onmouseover to set
     */
    public void setOnmouseover(String onmouseover) {
        this.onmouseover = onmouseover;
    }

    /**
     * The JavaScript of the value is executed when the cursor is moved over
     * an element.
     * @return the onmousemove
     */
    public String getOnmousemove() {
        return onmousemove;
    }

    /**
     * The JavaScript of the value is executed when the cursor is moved over
     * an element.
     * @param onmousemove the onmousemove to set
     */
    public void setOnmousemove(String onmousemove) {
        this.onmousemove = onmousemove;
    }

    /**
     * The JavaScript of the value is executed when the cursor is moved off an
     * element.
     * @return the onmouseout
     */
    public String getOnmouseout() {
        return onmouseout;
    }

    /**
     * The JavaScript of the value is executed when the cursor is moved off an
     * element.
     * @param onmouseout the onmouseout to set
     */
    public void setOnmouseout(String onmouseout) {
        this.onmouseout = onmouseout;
    }

    /**
     * The JavaScript of the value is executed when an element is in focus and a
     * key on the keyboard is pressed down and released.
     * @return the onkeypress
     */
    public String getOnkeypress() {
        return onkeypress;
    }

    /**
     * The JavaScript of the value is executed when an element is in focus and a
     * key on the keyboard is pressed down and released.
     * @param onkeypress the onkeypress to set
     */
    public void setOnkeypress(String onkeypress) {
        this.onkeypress = onkeypress;
    }

    /**
     * The JavaScript of the value is executed when an element is in focus and a
     * key on the keyboard is pressed down.
     * @return the onkeydown
     */
    public String getOnkeydown() {
        return onkeydown;
    }

    /**
     * The JavaScript of the value is executed when an element is in focus and a
     * key on the keyboard is pressed down.
     * @param onkeydown the onkeydown to set
     */
    public void setOnkeydown(String onkeydown) {
        this.onkeydown = onkeydown;
    }

    /**
     * The JavaScript of the value is executed when an element is in focus and a
     * key on the keyboard is released.
     * @return the onkeyup
     */
    public String getOnkeyup() {
        return onkeyup;
    }

    /**
     * The JavaScript of the value is executed when an element is in focus and a
     * key on the keyboard is released.
     * @param onkeyup the onkeyup to set
     */
    public void setOnkeyup(String onkeyup) {
        this.onkeyup = onkeyup;
    }


}
